package com.sky.kafkaDemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user") // @TableName 用来指定表名
public class User {
    @TableId(value = "id", type = IdType.AUTO) //@TableId 用来指定主键字段信息
    private Integer id;
    @TableField("user_name")
    private String userName;
    private String password;
    private String idCard;
    private String phone;
    private String info;
    private Integer status;
    private Integer balance;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false) // 标记这个字段不是在数据库表里面的
    private String address;
}
